set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-rpath='$ORIGIN'")
cc_library(pybind_utils SRCS utils.cc DEPS pybind python json)
cc_library(pybind_normalizers SRCS normalizers.cc DEPS pybind python json normalizers)
cc_library(pybind_pretokenizers SRCS pretokenizers.cc DEPS pybind python json pretokenizers)
cc_library(pybind_models SRCS models.cc DEPS pybind python json models)
cc_library(pybind_postprocessors SRCS postprocessors.cc DEPS pybind python core json postprocessors)
cc_library(pybind_tokenizers SRCS tokenizers.cc DEPS pybind python pybind_utils json tokenizer)
cc_library(pybind_exception SRCS exception.cc DEPS pybind python)
cc_library(pybind_decoders SRCS decoders.cc DEPS pybind python json decoders)
cc_library(pybind_core SRCS core.cc DEPS pybind python json)